package com.jx.driving.transmission;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 学员登出应答
 * 
 * @author shenliuyang
 *
 *         2016年8月15日上午10:25:25
 */
@TerminalAnnotation
public class Terminal0x8202Transmission extends TimeTerminalTransmissionMessage {
    @ByteAnnotation(order = 1)
    private short result;// 登出结果1：登出成功；2：登出失败
    @LimitedStringAnnotation(value = 16, order = 2)
    private String userNo;// 学员编号

    public short getResult() {
	return result;
    }

    public void setResult(short result) {
	this.result = result;
    }

    public String getUserNo() {
	return userNo;
    }

    public void setUserNo(String userNo) {
	this.userNo = userNo;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x8202Transmission [result=").append(result).append(", userNo=").append(userNo)
		.append("]");
	return builder.toString();
    }

}
